Both the name and the field definitions of a parameter 2 data area used in an IN
should be coded in the D
specification.
This ensures that all definition data is kept together, and the specific data is not manually extracted in the code, thus making the code easier to
read and maintain.
Noncompliant code example
D WSFD08 S 30A 0
C IN WSFD08
C MOVEL WSFD08 VAR9S
D WSFD08 S 30A 0
/free
in WSFD08;
/end-free
Compliant solution
D WSFD08 DS 30 DTAARA(HEPDTAR005)
D W3SPNO 123 124B 0
D W3LNCT 367 368B 0
C IN WSFD08
D WSFD08 DS 30 DTAARA(HEPDTAR005)
D W3SPNO 123 124B 0
D W3LNCT 367 368B 0
/free
in WSFD08;
/end-free